<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品更新</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/form.css">
</head>
<body>
    <div class="导航栏">
        <h1>收银台</h1>
        <ol>
            <li><a href="/register.html">注册账号</a></li>
            <li><a href="/login.html">切换账号</a></li>
            <li><a href="/product/create.html">上架商品</a></li>
            <li><a href="/product/list.html">浏览商品</a></li>
            <li><a href="/product/update.html">更新商品</a></li>
            <li><a href="/order/list.html">浏览订单</a></li>
            <li><a href="/order/create.html">购买商品</a></li>
        </ol>
    </div>
    <div class="功能区">
        <form method="post" action="/product/update.do">
            <label>
                <input type="text" name="productId" placeholder="商品 ID" required>
            </label>
            <label>
                <input type="text" name="productname" placeholder="商品名称" required>
            </label>
            <label>
                <input type="text" name="description" placeholder="商品介绍" required>
            </label>
            <label>
                <input type="text" name="stock" placeholder="商品库存" required>
            </label>
            <label>
                <input type="text" name="unit" placeholder="商品单位" required>
            </label>
            <label>
                <input type="text" name="price" placeholder="商品价格，最小单位是分，也就是小数点后两位" required>
            </label>
            <label>
                <input type="text" name="discount" placeholder="商品折扣，大于 0 小于等于 100 的值" required>
            </label>
            <button>更新</button>
        </form>
    </div>
</body>
</html>